<template>
	<view class="top-card-box">
		<view class="card-title">{{title}}</view>
		<view class="card-subtitle" @click="goLogin">{{subtitle}}</view>
	</view>
</template>

<script setup>
	import {defineProps ,ref} from "vue";
	const props=defineProps({
		title:{
			type:String,
			default:""

		},
		subtitle:{
			type:String,
			default:''
		}
	})
	function goLogin(){
		uni.navigateTo({
			url:"/package_login/pages/login/login"
		})
	}
</script>

<style lang="less">
.top-card-box{
	color: #ffffff;
	font-size: 46rpx;
	font-family: "ali-m";
	width: 80vw;
	text-align: left;
	.card-subtitle{
		font-size: 23rpx;
	}
}
</style>
